package com.imau.common;

public enum ResultCode {

   //枚举
   //成功代码
    SUCCESS(true,10000,"操作成功！"),
    //---系统错误返回码-----
    SERVER_ERROR(false,9999,"系统异常"),
    FAIL(false,10001,"操作失败"),
    UNAUTHENTICATED(false,10002,"您还未登录"),
    UNAUTHORISE(false,10003,"权限不足"),
    ;

    private boolean   success;
    private Integer code;

    //message
    private String message;


    ResultCode(boolean   success,Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    public boolean getSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
